package com.learn.eduorderboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户课程订单表
 * </p>
 *
 * @author m
 * @since 2022-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserCourseOrder1对象", description="用户课程订单表")
public class UserCourseOrder1 implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "课程id，根据订单中的课程类型来选择")
    private Integer courseId;

    @ApiModelProperty(value = "活动课程id")
    private Integer activityCourseId;

    @ApiModelProperty(value = "订单来源类型: 1 用户下单购买 2 后台添加专栏")
    private Integer sourceType;

    @ApiModelProperty(value = "当前状态: 0已创建 10未支付 20已支付 30已取消 40已过期 ")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;


}
